/**
 * 
 */
package com.wubo.sec.config;

import java.io.IOException;

/**
 * @author WuBo
 * @CreateDate 2010-11-9
 * @version 1.0.01
 */
public class ConfigContextFactory {
	
	private ConfigContextFactory(){
		
	}
	
	public static ConfigContext createConfigContext(String configFileName){
		try{
			return new ConfigContextImpl(ConfigContextFactory.class.getClassLoader().getResourceAsStream(configFileName));
		}catch(IOException ex){
			throw new RuntimeException(ex);
		}
	}
	
}
